projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
901106f
)
gtk-demo: queue_draw() when the color changes
author
Benjamin Otte
<otte@redhat.com>
Tue, 3 Jan 2017 22:34:53 +0000
(23:34 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Tue, 3 Jan 2017 22:35:22 +0000
(23:35 +0100)
demos/gtk-demo/colorsel.c
patch
|
blob
|
history
diff --git
a/demos/gtk-demo/colorsel.c
b/demos/gtk-demo/colorsel.c
index 3ce61932a8571c4af93235b74ff7cbdab37f5d19..29f0857682e1e58fd68dc8463574b7a6bf7730ca 100644
(file)
--- a/
demos/gtk-demo/colorsel.c
+++ b/
demos/gtk-demo/colorsel.c
@@
-32,7
+32,10
@@
response_cb (GtkDialog *dialog,
gpointer user_data)
{
if (response_id == GTK_RESPONSE_OK)
- gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (dialog), &color);
+ {
+ gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (dialog), &color);
+ gtk_widget_queue_draw (da);
+ }
gtk_widget_destroy (GTK_WIDGET (dialog));
}